﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div id="plancurtasklist">
    <p>
        待办任务</p>
    <div>
        <table>
            <tr>
                <th>
                    任务编码
                </th>
                <th>
                    实例标识
                </th>
                <th>
                    任务名称
                </th>
                <th>
                    任务状态
                </th>
                <th>
                    开始时间
                </th>
                <th>
                    发起人
                </th>
                <th>
                    操作
                </th>
            </tr>
            <%
                System.Data.DataTable dt = ViewData["dt"] as System.Data.DataTable;
                for (int i = 0; i < dt.Rows.Count; i++)
                {
            %>
            <tr>
                <td>
                    <%=dt.Rows[i]["任务编码"]%>
                </td>
                <td>
                    <%=dt.Rows[i]["实例标识"]%>
                </td>
                <td>
                    <%=dt.Rows[i]["任务名称"]%>
                </td>
                <td>
                    <%=dt.Rows[i]["任务状态"]%>
                </td>
                <td>
                    <%=dt.Rows[i]["开始时间"]%>
                </td>
                <td>
                    <%=dt.Rows[i]["发起人"]%>
                </td>
                <td>
                    <%=Ajax.ActionLink("审批", "WFProcess","WorkFlow",
                                new
                                {
                                    uniqueid = dt.Rows[i]["实例标识"],
                                    task_id = dt.Rows[i]["任务编码"],
                                    ptask_id = dt.Rows[i]["父级编码"]
                                }, new AjaxOptions { UpdateTargetId = "workarea", OnSuccess = "intityUserTree_WF" })%>
                </td>
            </tr>
            <%
                } %>
        </table>
    </div>
</div>
